package com.jappyframework.api;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * A recipe is a web-service description. A recipe is created
 * out of a singleton class.
 * So if you make a class a recipe it should follow a singleton
 * pattern and have access to a method
 *     .getInstance();
 * 
 * A recipe consists of potions. @see Potion
 * 
 * @author harsh
 */
@Retention(RetentionPolicy.SOURCE)
public @interface WebService {
	
	/**
	 * Name of the path to map it to. 
	 * Every servlet gets map to a unique pathname in the context
	 * its deployed. If deployed in the ROOT context it will be accessed
	 * as /pathname else /context/pathname.
	 */
	public String pathname();
}
